package com.ssy.lingxi.after.sale.model.vo.request;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * 手工发货VO
 * @author 伍将
 * @date 2020/12/4
 * @version 2.0.0
 */
public class ManualDeliveryGoodsVO implements Serializable {
    private static final long serialVersionUID = 775140799425584190L;

    /**
     * 售后id
     */
    @NotNull(message = "售后id要大于0")
    @Positive(message = "售后id要大于0")
    private Long dataId;

    /**
     * 发货地址
     */
    @NotBlank(message = "发货地址不能为空")
    private String deliveryAddress;

    /**
     * 发货时间
     */
    @NotNull(message = "发货时间不能为空")
    private Long deliveryTime;

    /**
     * 物流单号
     */
    private String logisticsOrderNo;

    /**
     * 物流公司
     */
    private String logisticsName;

    /**
     * 退货商品数量
     */
    @Valid
    @Size(min = 1,message = "退货商品信息必填")
    private List<ManualDeliveryGoodsProductVO> productList;

    public Long getDataId() {
        return dataId;
    }

    public void setDataId(Long dataId) {
        this.dataId = dataId;
    }

    public String getDeliveryAddress() {
        return deliveryAddress;
    }

    public void setDeliveryAddress(String deliveryAddress) {
        this.deliveryAddress = deliveryAddress;
    }

    public Long getDeliveryTime() {
        return deliveryTime;
    }

    public void setDeliveryTime(Long deliveryTime) {
        this.deliveryTime = deliveryTime;
    }

    public String getLogisticsOrderNo() {
        return logisticsOrderNo;
    }

    public void setLogisticsOrderNo(String logisticsOrderNo) {
        this.logisticsOrderNo = logisticsOrderNo;
    }

    public String getLogisticsName() {
        return logisticsName;
    }

    public void setLogisticsName(String logisticsName) {
        this.logisticsName = logisticsName;
    }

    public List<ManualDeliveryGoodsProductVO> getProductList() {
        return productList;
    }

    public void setProductList(List<ManualDeliveryGoodsProductVO> productList) {
        this.productList = productList;
    }
}
